package cc.chenwh.sequence.client.sequenceclient;

import java.util.concurrent.CountDownLatch;

public class M4 {

    private volatile CountDownLatch latch = new CountDownLatch(0);

    public static void main(String[] args) {
        M4 m4 = new M4();
        m4.t1();
    }

    private void t1(){
        new Thread(()->{
            try {
                latch.await();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("阻塞吗？");
        }).start();
    }
}
